<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加收货地址</title>
	<link rel="stylesheet" href="./book_source/modules/imgs/deng/addAddress/books.css"
			type="text/css">
			<style type="text/css">
.STYLE2 {
	font-size: 14px;
	font-weight: bold;
}

.STYLE4 {
	padding-left: 10px
}

.STYLE5 {
	color: #006600
}

.sty1 {
	display: none;
}

.sty2 {
	display: inline;
}

.addresslist {
	width: 100%;
	line-height: 30px;
}

.addresslist ul {
	width: 100%;
	height: auto;
}

.addresslistli {
	width: 100%;
	height: 65px;
	border-top: #DAE3F2 1px solid;
	line-height: 30px;
}

.addresslistlis {
	width: 100%;
	height: 65px;
	line-height: 30px;
}

.addresslistli span {
	margin-left: 30px;
}

.addresslistli p {
	margin-left: 50px;
}

.addresslistlis span {
	margin-left: 30px;
}

.addresslistlis p {
	margin-left: 50px;
}

.addresslistlis p a {
	color: #1A66B3;
}

.addresslistli p a {
	color: #1A66B3;
}

.addresslistlis p label {
	padding-left: 30px;
}

.addresslistli p label {
	padding-left: 30px;
}
</style>
			<script src="./book_source/modules/imgs/deng/addAddress/hm.js.下载"></script>
			<script type="text/javascript"
				src="./book_source/modules/imgs/deng/addAddress/cnCityData.js.下载"></script>
			<script type="text/javascript"
				src="./book_source/modules/imgs/deng/addAddress/CheckCommon.js.下载"></script>
			<script type="text/javascript"
				src="./book_source/modules/imgs/deng/addAddress/CheckArea.js.下载"></script>
			<script type="text/javascript"
				src="./book_source/modules/imgs/deng/addAddress/CheckAjax.js.下载"></script>
			<script type="text/javascript">
var btnstartFun=""
var btnendFun="";
var TextFun="";
function btnstartajax()
{
}
function btnendajax()
{
}
function btn_address()//确认收货人信息按钮
{
    if(txtChecking()==true)
    {
        var listvalue="0";
        if(document.getElementById("listvalueupdate") !=undefined)
        {
            if(document.getElementById("listvalueupdate").value !="")
            {
                listvalue=document.getElementById("listvalueupdate").value;
            }
        }
        var username=document.getElementById("UserName").value;
        var txtusername=document.getElementById("txtusername").value.replace(",","").replace("&","").replace("=","").replace("-","");
        
        //alert(listvalue)
        //alert(DIVAddress.style.display)
        if(listvalue !="-1" && listvalue !="")
        {
            var area="";
            var ddlvaluecenter=document.getElementById("ddlcity").value;
            //alert(strarray(ddlvaluecenter,1).substring(2,4))
            if(ddlvaluecenter.length >6)
            {
                var listcenter=strarray(ddlvaluecenter,1).substring(2,4)
                //alert(listcenter)
                if(parseInt(listcenter) >=80)
                {
                    area=ddlSelectValue("selectct",1)+","+strarray(ddlSelectValue("ddlProvice",1),0)+","+strarray(ddlSelectValue("ddlcity",1),0);
                }
                else
                {
                    area=ddlSelectValue("selectct",1)+","+strarray(ddlSelectValue("ddlProvice",1),0)+","+strarray(ddlSelectValue("ddlcity",1),0)+","+strarray(ddlSelectValue("ddlcountry",1),0).replace("*","");
                }
                //alert(area);
            }
            if(ddlSelectValue("selectct",1) !="中国")
            {
                area=ddlSelectValue("selectct",1);
            }
            var areacode=strarray(document.getElementById("ddlcountry").value,1);
            if(areacode=="0")
            {
                areacode="000000";
            }
            var txtaddress=document.getElementById("txtaddress").value.replace(",","").replace("&","").replace("=","").replace("_","");
            var txtcode=document.getElementById("txtcode").value;
            var txtmobile=document.getElementById("txtmobile").value;
            var txttel=document.getElementById("txttel").value; 


            if(listvalue=="0")//新增加地址信息
            {
              if(txtChecking())
              {
                btnstartFun="btnstartajax";
                btnendFun="btnendajax";
                TextFun='addok';
                ajaxCommon("/ashx/AddressInfoEdit.ashx?id=0&username="+escape(username)+"&AccUser="+escape(txtusername)+"&area="+escape(area)+"&areacode="+escape(areacode)+"&address="+escape(txtaddress)+"&postcode="+escape(txtcode)+"&mobile="+escape(txtmobile)+"&tel="+escape(txttel)+"&dCateGory=0&dTime=0&PCategory=0")
              }
            }
            else if(listvalue!="0")//更新地址信息
            {
              if(txtChecking())
              {
                btnstartFun="btnstartajax";
                btnendFun="btnendajax";
                TextFun='Upok';
                id=rbcheckvalue("rdaddlist");
                ajaxCommon("/ashx/AddressInfoEdit.ashx?id="+listvalue+"&username="+escape(username)+"&AccUser="+escape(txtusername)+"&area="+escape(area)+"&areacode="+escape(areacode)+"&address="+escape(txtaddress)+"&postcode="+escape(txtcode)+"&mobile="+escape(txtmobile)+"&tel="+escape(txttel)+"&dCateGory=0&dTime=0&PCategory=0")
              }
            }
        }
    }
    else
    {
        alert("请完善收货地址信息!");
    }
}
function addok(obj)//地址添加成功
{   
    //alert(obj)
    if(obj=="-9")
    {
        alert("页面已超时!");
        parent.location.reload();
    }
    else if(obj=="-8")
    {
        alert("收货地址信息填写不完善或不正确,请刷新页面完善收货地址信息后再试!");
        parent.location.reload();
    }
    else if(obj !="0" && parseInt(obj) >0)
    {
        parent.location.reload();
    }
    else if(obj=="-2")
    {
        alert("已经添加相同的收货人信息,请修改信息后再试!");
    }
    else if(obj=="-5")
    {
        alert("只能添加5条收货地址信息!");
    }
    else
    {
        parent.location.reload();
    }
}
function Upok(obj)//地址修改成功
{
    //alert(obj)
    if(obj=="-9")
    {
        alert("页面已超时!");
        parent.location.reload();
    }
    else if(obj=="-8")
    {
        alert("收货地址信息填写不完善或不正确,请刷新页面完善收货地址信息后再试!");
        parent.location.reload();
    }
    if(obj !="0" && obj !="-1" && obj !="-2")
    {
        parent.location.reload();
    }
    else if(obj=="-1")
    {
       parent.location.reload();
    }
    else if(obj=="-2")
    {
        alert("已经添加相同的收货人信息,请修改信息后再试!");
    }
}
function txtChecking()//地址信息检测
{
    //alert("545455")
    var errors=new Array(10);
    errors[0]=" 请填写收货人姓名!";
    errors[1]=" 请选择省份!";
    errors[2]=" 请选择市!";
    errors[3]=" 请选择县!";
    errors[4]=" 请填写详细地址!";
    errors[5]=" 请填写您的邮编!";
    errors[6]=" 请填写移动电话或者固定电话!";
    errors[7]=" 请填写正确的邮编号码!";
    errors[8]=" 请填写正确的手机号码!";
    errors[9]=" 请填写正确的固定电话!";
    var txtname,ddlprovices,ddlcitys,ddlcountrys,txtaddresss,txtpostcode,txtmobiles,txttels;
    var txtusernamemsg,ddlProvicemsg,txtaddressmsg,txtcodemsg,txttelmsg;
    txtname=V("txtusername").value;
    ddlprovices=V("ddlProvice").value;
    ddlcitys=V("ddlcity").value;
    ddlcountrys=V("ddlcountry").value;
    txtaddresss=V("txtaddress").value;
    txtpostcode=V("txtcode").value;
    txtmobiles=V("txtmobile").value;
    txttels=V("txttel").value;
    var ship_mobile=/^([0-9]){11,12}$/
    var ship_tel=/^(.){7,20}$/
    var ship_postcode=/^\d{6}$/
    
    txtusernamemsg=V("txtusernamemsg");
    ddlProvicemsg=V("ddlProvicemsg");
    txtaddressmsg=V("txtaddressmsg");
    txtcodemsg=V("txtcodemsg");
    txttelmsg=V("txttelmsg");
    if(trim(txtname) =="")
    {
        //alert("asas")
        txtusernamemsg.innerHTML=errors[0];
        return false;
    }
    else{txtusernamemsg.innerHTML=""}
    if(ddlprovices =="请选择-0" && document.getElementById("selectct").value=="中国")
    {
        ddlProvicemsg.innerHTML=errors[1];
        return false;
    }
    if(ddlcitys =="请选择-0" && document.getElementById("selectct").value=="中国")
    {
        ddlProvicemsg.innerHTML=errors[2];
        return false;
    }
    if(document.getElementById("ddlcity") ==undefined || ddlcitys.length <2 || ddlcitys=="" || ddlcitys==undefined)
    {
        alert("页面加载不完整,请刷新页面后重试!");
        parent.location.reload();
        return false;
    }
    var centertwo=strarray(ddlcitys,1).substring(2,4);
    //alert(parseInt(centertwo))
    if(ddlcountrys =="请选择-0" && document.getElementById("selectct").value=="中国" && parseInt(centertwo) <80)
    {
        ddlProvicemsg.innerHTML=errors[3];
        return false;
    }
    else{ddlProvicemsg.innerHTML=""}
    if(document.getElementById("ddlcountry") ==undefined || ddlcountrys.length <2 || ddlcountrys=="" || ddlcountrys==undefined)
    {
        alert("页面加载不完整,请刷新页面后重试!");
        parent.location.reload();
        return false;
    }
    //alert(document.getElementById("ddlcountry").value)
    if(trim(txtaddresss) =="")
    {
        txtaddressmsg.innerHTML=errors[4];
        return false;
    }
    else{txtaddressmsg.innerHTML=""}
    if(trim(txtpostcode) =="" && document.getElementById("selectct").value=="中国" && document.getElementById("ddlProvice").value !="台湾-710000" && document.getElementById("ddlProvice").value !="香港-810000" && document.getElementById("ddlProvice").value !="澳门-820000")
    {
        txtcodemsg.innerHTML=errors[5];
        return false;
    }
    
    if(!ship_postcode.test(trim(txtpostcode)) && document.getElementById("selectct").value=="中国" && document.getElementById("ddlProvice").value !="台湾-710000" && document.getElementById("ddlProvice").value !="香港-810000" && document.getElementById("ddlProvice").value !="澳门-820000")
    {
        txtcodemsg.innerHTML=errors[7];
        return false;
    }
    else{txtcodemsg.innerHTML=""}
    if(trim(txtmobiles) =="" && trim(txttels) =="")
    {
        txttelmsg.innerHTML=errors[6];
        return false;
    }
//    if(trim(txtmobiles) !="" && !ship_mobile.test(trim(txtmobiles)))
//    {
//        txttelmsg.innerHTML=errors[8];
//        return false;
//    }
    return true;
    
}
function upListInfo(obj)//修改现有地址信息按钮 
{
    document.getElementById("listvalueupdate").value=obj;
    var name="rdlisthidden"+obj;
    var strlist=new Array();
    //alert(document.getElementById(name).value)
    strlist=document.getElementById(name).value.split(',');
    var username,strcode,address,code,mobile,tel;
    mobile="";tel="";
    username=strlist[0];
    code=strlist[3];
    var strtel=new Array();
    strtel=strlist[4].split('-');
    
    var countrys,strarea;
    var areaarray=new Array();
    areaarray=strlist[1].split('-');
    countrys=areaarray[0];
    strarea=areaarray[1];
    var listcenter="0";
    if(strarea !="0")
    {
        listcenter=strarea.substring(2,6);
    }
    

    var strs=new Array();
    strs=strlist[2].split('_');
    var centerlll;
    centerlll=listcenter.substring(0,2);
    if(parseInt(centerlll) >=80)
    {
        strcode=strs[0]+"，"+strs[1]+"，"+strs[2];
        address=strs[3];
    }
    else
    {
         if(strs[0]!="中国")
         {
            strcode=strs[0];
            address=strs[1];
         }
         else
         {
            strcode=strs[0]+"，"+strs[1]+"，"+strs[2]+"，"+strs[3];
            address=strs[4];
         }

    }
//        
//    if(strs[0]!="中国")
//    {
//        strcode=strs[0];
//    }
//    address=strs[4];
//    if(strs[0]!="中国")
//    {
//        address=strs[1];
//    }
    if(strtel[0] !="0")
    {
        mobile=strtel[0];
    }
    if(strtel[1] !="0")
    {
        tel=strtel[1];
    }

    backHTML(username,countrys,strarea,strcode,address,code,mobile,tel);
}
function backHTML(username,countrys,strarea,strcode,address,code,mobile,tel)//地址表绑定值
{
//    alert(username)
//    alert("countrys:"+countrys)
//    alert("strarea:"+strarea)
//    alert(strcode)
//    alert(address)
//    alert(code)
//    alert(mobile)
//    alert(tel)
    //document.getElementById("DIVAddress").style.display='';
    document.getElementById("txtusername").value=username;
    if(countrys !="0")
    {
        ddlCommSelected("selectct",countrys);
        document.getElementById("ddlProvice").style.display="none";
        document.getElementById("ddlcity").style.display="none";
        document.getElementById("ddlcountry").style.display="none";
    }
    else
    {
        ddlCommSelected("selectct","中国");
        document.getElementById("ddlProvice").style.display="";
        document.getElementById("ddlcity").style.display="";
        document.getElementById("ddlcountry").style.display="";
    }
    if(strarea !="000000" && strarea !="0")
    {
        var ct=strarea.substring(0,4)+"00";
        var cty=strarea.substring(0,2)+"0000";
        var sty=strarea;
        var listcenter=strarea.substring(2,6);
        ddlSelected("ddlProvice",cty,"");
        var strcc=document.getElementById("ddlProvice").value;
        //alert(strcc);
        provicechange(strcc);
        ddlSelected("ddlcity",ct,"");
        var strcounty=document.getElementById("ddlcity").value;
        //alert(strcounty);
        CityChange(strcounty);
        ddlSelected("ddlcountry",sty,"");
        //if(strarea.substring(0,2)=="71"||strarea.substring(0,2)=="81"||strarea.substring(0,2)=="82")
        var centerlll;
        centerlll=listcenter.substring(0,2);
        if(parseInt(centerlll) >=80)
        {
            document.getElementById("ddlcountry").style.display="none";
        }
        else
        {
            document.getElementById("ddlcountry").style.display="";
        }
    }
    else
    {
        ddlSelected("ddlProvice","0","");
        var os=document.getElementById("ddlcity");
        var oss=document.getElementById("ddlcountry");
        delAllOptions(os);
        addOptions(os,"请选择-0");
        delAllOptions(oss);
        addOptions(oss,"请选择-0");
    }
    document.getElementById("spaddressinfo").innerHTML=strcode;
    document.getElementById("txtaddress").value=address;
    document.getElementById("txtcode").value=code;
    document.getElementById("txtmobile").value=mobile;
    document.getElementById("txttel").value=tel;
}

function upIsDefaultListInfo(obj,uname)
{
    //document.getElementById("hiddenIsdefaultvalue").value=obj;
    btnstartFun="btnUpisdefaultS";
    btnendFun="btnUpisdefaultE";
    TextFun='btnUpisdefaultOn';
    ajaxCommon("/ashx/AddressInfoEdit.ashx?defid="+obj+"&username="+escape(uname));//upisdefaults
}
function btnUpisdefaultS()
{
//    var list=0;
//    if(document.getElementById("hiddenIsdefaultvalue").value !="0")
//    {
//        list=document.getElementById("hiddenIsdefaultvalue").value;
//        document.getElementById("upisdefault"+list).style.display="none";
//        document.getElementById("upisdefaults"+list).style.display="";
//    }
}
function btnUpisdefaultE()
{
//    var list=0;
//    if(document.getElementById("hiddenIsdefaultvalue").value !="0")
//    {
//        list=document.getElementById("hiddenIsdefaultvalue").value;
//        document.getElementById("upisdefault"+list).style.display="";
//        document.getElementById("upisdefaults"+list).style.display="none";
//    }
}
function btnUpisdefaultOn(obj)
{
    //alert(obj)
    if(parseInt(obj) >0)
    {
       parent.location.reload();
    }
    else
    {
        alert('设置失败!请刷新页面重试或联系管理员!');
    }
}
function DeleteOneList(obj)
{
    btnstartFun="DELUpisdefaultS";
    btnendFun="DELUpisdefaultE";
    TextFun='DELUpisdefaultOn'; 
    ajaxCommon("/ashx/AddressInfoEdit.ashx?deleteid="+obj);//upisdefaults
}
function DELUpisdefaultS()
{

}
function DELUpisdefaultE()
{

}
function DELUpisdefaultOn(obj)
{
    //alert(obj);
    if(obj=="1")
    {
       parent.location.reload();
    }
    else if(obj=="-9")
    {
        alert('页面超时!');
        parent.location.reload();
    }
    else
    {
        alert('设置失败!请刷新页面重试或联系管理员!');
        parent.location.reload();
    }
}
</script>
			<script type="text/javascript" async="async" charset="utf-8"
				src="./book_source/modules/imgs/deng/addAddress/userinfo.php"></script>
			<script type="text/javascript" async="async" charset="utf-8"
				src="./book_source/modules/imgs/deng/addAddress/zh_cn.js.下载" data-requiremodule="lang"></script>
			<script type="text/javascript" async="async" charset="utf-8"
				src="./book_source/modules/imgs/deng/addAddress/chat.in.js.下载"
				data-requiremodule="chatManage"></script>
			<script type="text/javascript" async="async" charset="utf-8"
				src="./book_source/modules/imgs/deng/addAddress/mqtt31.js.下载" data-requiremodule="MQTT"></script>
			<script type="text/javascript" async="async" charset="utf-8"
				src="./book_source/modules/imgs/deng/addAddress/mqtt.chat.js.下载"
				data-requiremodule="Connection"></script>






</head>
<body>
<body><div id="nTalk_post_hiddenElement" style="left: -10px; top: -10px; visibility: hidden; display: none; width: 1px; height: 1px;"></div>
<link type="text/css" rel="stylesheet" href="./book_source/modules/imgs/deng/addAddress/book.css">
<link type="text/css" rel="stylesheet" href="./book_source/modules/imgs/deng/addAddress/common2.css">
<script type="text/javascript" src="./book_source/modules/imgs/deng/addAddress/jquery-1.8.3.min.js.下载"></script>
<script type="text/javascript" src="./book_source/modules/imgs/deng/addAddress/autocomplete.js.下载"></script>
<script type="text/javascript" src="./book_source/modules/imgs/deng/addAddress/logintop.js.下载"></script>
<!--顶部工具栏-->
<div class="topBar">
    <div class="w1200 clearfix">
        <!--登入 注册-->
        <div class="loginArea"><b>欢迎光临中国图书网</b><a href="http://www.bookschina.com/vieworder/default.aspx" target="_self" class="userCenter">201401031000132</a><a href="javascript:void(0)" class="userExit" onclick="loginoutcommon();">[安全退出]</a></div>
        <!--右侧工具栏-->
        <div class="webTool">
            <ul class="clearfix">
                <li>
                    <div class="dt">
                        <a href="http://www.bookschina.com/shopcar/shoppingcart.aspx" target="_blank">购物车</a>
                    </div>
                </li>
                <li>
                    <div class="dt">
                        <a href="http://www.bookschina.com/vieworder/listorder.aspx" target="_blank">我的订单</a>
                    </div>
                </li>
                <li class="drop">
                    <div class="dt">
                        <a href="http://www.bookschina.com/vieworder/default.aspx" target="_blank">我的账户</a>
                        <b class="icon"></b>
                    </div>
                    <div class="dropLayer" style="width: 162px;">
                        <a href="http://www.bookschina.com/Favorites/Default.aspx" target="_blank">我的收藏夹</a>
                        <a href="http://www.bookschina.com/ViewOrder/deposit.aspx" target="_blank">账户余额</a>
                        <a href="http://www.bookschina.com/vieworder/mycoupons.aspx" target="_blank">我的优惠券</a>
                        <a href="http://www.bookschina.com/vieworder/showscore.aspx" target="_blank">我的积分</a>
                        <a href="http://www.bookschina.com/RegUser/myaddress.aspx" target="_blank">收货地址</a>
                        <a href="http://www.bookschina.com/Favorites/Book_review.aspx" target="_blank">我的书评</a>
                        <a href="http://www.bookschina.com/sms/smslist.aspx" target="_blank">我的消息</a>
                        <a href="http://www.bookschina.com/vieworder/points_change.aspx" target="_blank">积分换券</a>
                    </div>
                </li>
                <li>
                    <div class="dt">
                         <a href="http://www.bookschina.com/adservice/about.asp" target="_blank">帮助中心</a>
                  
                    </div>
      
                </li>

              <li class="drop">
                    <div class="dt">
                        <a href="http://m.bookschina.com/" target="_blank">手机中图</a>
                        <b class="icon"></b>
                    </div>
                    <div class="dropLayer" style="right: 0; left: initial; width: 164px; padding-bottom: 7px; padding-left: 5px;">
                        <div class="erweimaWrap">
                            <div class="erweima">
                                <img src="./book_source/modules/imgs/deng/addAddress/weiboerweima.jpg" alt="中图网微博">

                            </div>
                            <div class="text1">
                                <b>扫一扫</b>
                                <span>关注中图网<br>
                                    官方微博
                                </span>
                            </div>
                        </div>
                        <div class="erweimaWrap">
                            <div class="erweima">
                                <img src="./book_source/modules/imgs/deng/addAddress/weixinerweima.jpg" alt="中图网微信">
                            </div>
                            <div class="text1">
                                <b>扫一扫</b>
                                <span>关注中图网<br>
                                    微信公众号
                                </span>
                            </div>
                        </div>
                        <div class="erweimaWrap">
                            <div class="erweima">
                                <img src="./book_source/modules/imgs/deng/addAddress/phoneerweima.jpg" alt="手机中图">
                            </div>
                            <div class="text1">
                                <b>手机中图</b>
                                <span>进入中图网<br>
                                    手机触屏版
                                </span>
                            </div>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</div>

<!--搜索区域-->
<div class="searchBar">
    <div class="w1200 clearfix">
        <!--logo-->
        <div class="logo">
            <a href="http://www.bookschina.com/" title="中国图书网">
                <img src="./book_source/modules/imgs/deng/addAddress/logo0508.png" alt="中国图书网"></a>
        </div>
        <!--搜索区域-->
        <div class="searchArea">
            <div class="clearfix">
                <div class="searchFrom clearfix">
                    <span class="inputWrap">
                        <input type="text" id="keyword" name="keyword" value="" onclick="if ($.trim($(this).val()) == $.trim($(this).attr(&#39;datavalue&#39;))) { $(this).prop(&#39;value&#39;, &#39;&#39;) }" onblur="if (!$.trim($(this).val())) { $(this).prop(&#39;value&#39;, $(this).attr(&#39;datavalue&#39;)) }" placeholder="容斋随笔" datavalue="">
                    </span>
                    <a href="javascript:void(0)" class="searchBut">搜索</a>
                    <div class="dropSearch">
                        <dl>
                            <dt><span>搜索全部<b class="icon"></b></span></dt>
                            <dd>
                                <ul id="search_cates">
                                    <li id="cate_0" class="on">搜索全部</li>
                                    <li id="cate_1">书名</li>
                                    <li id="cate_3">作者</li>
                                    <li id="cate_4">出版社</li>
                                    <li id="cate_2">ISBN</li>
                                </ul>
                            </dd>
                        </dl>
                    </div>
                </div>
                <script src="./book_source/modules/imgs/deng/addAddress/jsHelper.js.下载"></script>
                <script type="text/javascript">
                    var keyword = getParam("stp");
                    var cate = getParam("sCate");
                    if (keyword != undefined && keyword.length > 0)
                        $("#keyword").val(unescape(keyword));
                    if (cate != undefined && cate.length > 0) {
                        $('#search_cates').find('.on').removeClass('on');
                        $('#cate_' + cate).addClass('on');
                        $(".dropSearch dt").html('<span>' + $('#cate_' + cate).html() + '<b class="icon"></b></span>');
                        $(".dropSearch dd").hide();
                    }
                </script>
                <div class="moreSearch"><a href="http://www.bookschina.com/book_find2/AdvancedSearch/AdvancedSearch.aspx" target="_blank">高级搜索</a></div>
            </div>
            <div class="hotWord">
                <a href="http://www.bookschina.com/book_find2/?stp=%u7ea2%u697c%u68a6" target="_blank" title="红楼梦">红楼梦</a>
                <a href="http://www.bookschina.com/book_find2/?stp=%u897f%u6e38%u8bb0" target="_blank" title="西游记">西游记</a>
                <a href="http://www.bookschina.com/book_find2/?stp=%u660e%u671d%u4e07%u5386%u5341%u4e94%u5e74" target="_blank" title="明朝万历十五年">明朝万历十五年</a>
                <a href="http://www.bookschina.com/book_find2/?stp=%u4e09%u56fd%u6f14%u4e49" target="_blank" title="三国演义">三国演义</a>
                <a href="http://www.bookschina.com/book_find2/?stp=%u6c34%u6d52%u4f20" target="_blank" title="水浒传">水浒传</a>
            </div>
        </div>
    </div>
</div>
<!--导航-->
<div id="nav">
    <div class="w1200 clearfix">
        <div class="category-content">
            <div class="nav_category clearfix">
                <ul class="specil_category clearfix">
                    <li class="cur"><a href="http://www.bookschina.com/" target="_parent">首页</a></li>
                    <li><a href="http://tuan.bookschina.com/" target="_parent">淘书团</a></li>
                    <li><a href="http://www.bookschina.com/24hour/" target="_parent">畅销榜</a></li>
                    <li><a href="http://www.bookschina.com/books/newinput/" target="_parent">新上架</a></li>
                    <li><a href="http://www.bookschina.com/books/9kuai9/" target="_parent">9块9包邮</a></li>
                    <li><a href="http://www.bookschina.com/books/publish/" target="_parent">出版社浏览</a></li>
                    <li><a href="http://www.bookschina.com/wenwan/" target="_parent">闲情雅趣</a></li>
                    <li><a href="http://pifa.bookschina.com/" target="_parent">批发</a></li>
                </ul>
            </div>

        </div>
    </div>
</div>
<script type="text/javascript" src="./book_source/modules/imgs/deng/addAddress/logintop.js.下载"></script>
<script type="text/javascript"> $(document).ready(function () { javascript: isLoging(); }) </script>
<script type="text/javascript">
    isLoging();
    //图书网搜索补全下拉
    $("#keyword").bigAutocomplete({
        url: "/book_find2/ajax/", callback: function (data) {
            window.open("/book_find2/?stp=" + escape(data.label) + "");
        }
    })
    $(".searchArea .searchFrom .dropSearch").hover(function () {
        var $this = $(this);
        $this.find("dd").show();
    }, function () {
        var $this = $(this);
        $this.find("dd").hide();
    })


    /*点击搜索按钮*/
    $(".searchBut").click(function () {
        var Keyword = $.trim($("#keyword").val());
        var sCategory = $("#search_cates .on").attr('id').replace("cate_", "");
        if (Keyword == "") {
            Keyword = $.trim($("#keyword").attr('placeholder'));
        }
        window.open("/book_find2/?stp=" + escape(Keyword) + "&sCate=" + sCategory);
        $("#bigAutocompleteContent").hide();
    })
    /*按回车键 搜索*/
    $("#keyword").keypress(function (event) {
        var e = event ? event : (window.event ? window.event : null);
        var key = e.which;
        if (key == 13) {
            var Keyword = $.trim($("#keyword").val())
            var sCategory = $("#search_cates .on").attr('id').replace("cate_", "");
            if (Keyword != "") {
                window.open("/book_find2/?stp=" + escape(Keyword) + "&sCate=" + sCategory);
                $("#bigAutocompleteContent").hide();
            }
        }
    })
    // 分类搜索
    $(".dropSearch dl dt").hover(function () {
        $(".dropSearch dd").show();
    })
    $(".dropSearch").mouseleave(function () {
        $(".dropSearch dd").hide();
    })
    $(".dropSearch dd ul li").click(function () {
        var $this = $(this);
        $this.addClass("on").siblings().removeClass("on");
        $(".dropSearch dt").html('<span>' + $this.html() + '<b class="icon"></b></span>');
        $(".dropSearch dd").hide();
    })

</script><div id="bigAutocompleteContent" class="bigautocomplete-layout"></div>

    <form method="post" action="http://www.bookschina.com/RegUser/myaddress.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE3MDMwNjI4MDlkZOlQl25yxSWTZgw+nnAla0WjmaRfElPKiHCSPduwkSmV">
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="60CA709A">
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAKpbjWJIJh3mXAePllrQzcBR1LBKX1P1xh290RQyTesRYOqSLqYulgSAeKvg9OUZ18OcW6KoKnOLYn3neBg5oDm">
</div>
    <input type="hidden" id="provicestr">
     <input type="hidden" id="listvalueupdate" value="0">
    <input name="UserName" type="hidden" id="UserName" value="201401031000132">
    <div id="booksPage">
<table width="1000" border="0">
  <tbody><tr>
    <td style="text-align:left; width:200px; vertical-align:top;">
<div class="AccountlistorderL">
<div class="Accountlistorder">
<ul>
<li class="Ttopnone"><a href="http://www.bookschina.com/ViewOrder/default.aspx"><span class="order">我的账户</span></a></li>
<li class="T">订单管理</li>
<li><a href="http://www.bookschina.com/ViewOrder/ListOrder.aspx">订单跟踪</a></li>
<li><a href="http://www.bookschina.com/vieworder/mydonate.aspx">公益订单</a></li>
<li><a href="http://www.bookschina.com/RegUser/myaddress.aspx">收货地址簿</a></li>
<li><a href="http://www.bookschina.com/vieworder/backlist.aspx">退换货管理</a></li>

<li><a href="http://www.bookschina.com/vieworder/MyPaiMai.aspx">我的竞拍</a></li>

<li class="T">账户管理</li>
<li><a href="http://www.bookschina.com/ViewOrder/deposit.aspx">账户余额</a></li>
<li><a href="http://www.bookschina.com/reguser/accountsafe.aspx">账户安全</a></li>
<li><a href="http://www.bookschina.com/vieworder/Card.aspx">书馨卡</a></li>
<li><a href="http://www.bookschina.com/vieworder/mycoupons.aspx">我的优惠券</a></li>
<li><a href="http://www.bookschina.com/VIEWORDER/myinvite.aspx">我的邀请</a></li>
<li><a href="http://www.bookschina.com/VIEWORDER/mypoker.aspx">我的抽奖</a></li>
<li><a href="http://www.bookschina.com/vieworder/Refund.aspx">提现</a></li>
<li><a href="http://www.bookschina.com/vieworder/ViewRefund.aspx">提现清单</a></li>
<li class="T">我的积分</li>
<li><a href="http://www.bookschina.com/vieworder/showscore.aspx">积分明细</a></li>
<li><a href="http://www.bookschina.com/vieworder/points_change.aspx">积分换券</a></li>
<li><a href="http://www.bookschina.com/vieworder/user_score.aspx">会员等级</a></li>
<li class="T">我关注的商品</li>
<li><a href="http://www.bookschina.com/Favorites/default.aspx">我的收藏夹</a></li>
<li><a href="http://www.bookschina.com/Favorites/Book_revieworder.aspx">写书评</a></li>
<li><a href="http://www.bookschina.com/Favorites/Book_review.aspx">我的书评</a></li>
<li class="T">个人信息</li>
<li><a href="http://www.bookschina.com/sms/smslist.aspx">站内短信</a></li>
<li><a href="http://www.bookschina.com/reguser/ProInfo.aspx">编辑个人档案</a></li>
<li><a href="http://www.bookschina.com/reguser/password.aspx">修改密码</a></li>
<li class="Tnone"><a href="http://www.bookschina.com/reguser/QuitSign.aspx" style="font-weight:bold;">退出登录</a></li>
</ul>
</div>
</div></td>
    <td style="line-height:24px;text-align:left; width:800px; vertical-align:top;">
    <div style="width:100%; text-align:left; font-size:13px; font-weight:bold;">收货地址簿</div>
     <table width="100%" border="1" align="center" cellspacing="0" bordercolor="#DAE3F2" bordercolorlight="#DAE3F2" bordercolordark="#ffffff">
          <tbody><tr align="left">
            <td style="padding-left:20px;">现有收货地址：</td>
           </tr>

          <tr align="left">
            <td>
            <div class="addresslist">
            <ul><input id="listvalue" type="hidden" value="0"><li class="addresslistlis"><span>暂无地址记录!</span></li><ul>

            </ul></ul></div>
            </td>
         </tr>
         <tr>
         <td>
         <div style="padding-left:25px; border-bottom:#DAE3F2 1px solid;"><span style="font-weight:bold;">新增/修改收货地址</span>    手机、固定电话选填一项，其余均为必填(最多保存5个收货地址)</div>
        <div id="UserAddressInfo" style="line-height:30px; padding-left:25px; margin-top:10px;"><div id="DIVAddress" class="DIVAddress">收&nbsp;货&nbsp;人：<input id="txtusername" onblur="CtoH(this)" type="text" maxlength="12"><font style="color:#CC3300; font-weight:bold;padding-left:5px;" id="txtusernamemsg"></font><br>
        地&nbsp;&nbsp;&nbsp;&nbsp;区：<select id="selectct" onchange="Nationchange()" style="width:80px;">
        <option selected="selected" value="中国">中国</option><option value="其他国家">其他国家</option></select>  <select id="ddlProvice" onchange="provicechange(this.value)"><option value="请选择-0">请选择</option><option value="北京-110000">北京</option><option value="天津-120000">天津</option>
        <option value="河北-130000">河北</option><option value="山西-140000">山西</option><option value="内蒙古-150000">内蒙古</option><option value="辽宁-210000">辽宁</option>
        <option value="吉林-220000">吉林</option><option value="黑龙江-230000">黑龙江</option><option value="上海-310000">上海</option><option value="江苏-320000">江苏</option>
        <option value="浙江-330000">浙江</option><option value="安徽-340000">安徽</option><option value="福建-350000">福建</option><option value="江西-360000">江西</option>
        <option value="山东-370000">山东</option><option value="河南-410000">河南</option><option value="湖北-420000">湖北</option><option value="湖南-430000">湖南</option>
        <option value="广东-440000">广东</option><option value="广西-450000">广西</option><option value="海南-460000">海南</option><option value="重庆-500000">重庆</option>
        <option value="四川-510000">四川</option><option value="贵州-520000">贵州</option><option value="云南-530000">云南</option><option value="西藏-540000">西藏</option>
        <option value="陕西-610000">陕西</option><option value="甘肃-620000">甘肃</option><option value="青海-630000">青海</option><option value="宁夏-640000">宁夏</option>
        <option value="新疆-650000">新疆</option><option value="台湾-710000">台湾</option><option value="香港-810000">香港</option><option value="澳门-820000">澳门</option></select>  
        <select id="ddlcity" onchange="CityChange(this.value)" style="width:auto;"><option value="0">请选择</option></select>  
        <select id="ddlcountry" onchange="CountyChange(this.value)"><option value="0">请选择</option></select>&nbsp;<font style="color:#CC3300; font-weight:bold;padding-left:5px;" id="ddlProvicemsg"></font><br>
        街道地址：<span id="spaddressinfo"></span>&nbsp;<input id="txtaddress" type="text" value="" onblur="CtoH(this)" maxlength="200" size="50" style="font-size:12px;"><font style="color:#CC3300; font-weight:bold;padding-left:5px;" id="txtaddressmsg"></font><br>
        邮&nbsp;&nbsp;&nbsp;&nbsp;编：<input id="txtcode" onblur="CtoHost(this)" type="text" value="" size="6" maxlength="6"><font style="color:#CC3300; font-weight:bold;padding-left:5px;" id="txtcodemsg"></font><br>
        手&nbsp;&nbsp;&nbsp;&nbsp;机：<input id="txtmobile" onblur="CtoHost(this)" type="text" value="" maxlength="12">&nbsp;&nbsp;<span class="GrayNotes">或者</span>固定电话：<input id="txttel" onblur="CtoH(this)" type="text" value="" maxlength="20"><font style="color:#CC3300; font-weight:bold;padding-left:5px;" id="txttelmsg"></font><br></div>
        
        <p onclick="btn_address()" id="btnEditAddress" class="btn" style="cursor:pointer; width:50px; margin-top:7px; margin-bottom:5px;">保存</p><span id="spanEditAddress" style="display:none;">正在操作...</span></div>

         </td>
         </tr>
</tbody></table>
    </td>
  </tr>
</tbody></table>
</div>
<link href="./book_source/modules/imgs/deng/addAddress/book.css" rel="stylesheet" type="text/css">
<!--底部文件开始-->
<div class="clear"></div>
<div class="bottominformationfile">
<ul>
<li><h2>新手上路</h2></li>
<li>·<a href="http://www.bookschina.com/buydemo/default.asp" target="_blank">购物流程演示</a></li>
<li>·<a href="http://www.bookschina.com/RegUser/Register.aspx" target="_blank">注册用户 更改注册信息</a></li>
<li>·<a href="http://www.bookschina.com/question/default.asp" target="_blank">购物常见问题</a></li>
<li>·<a href="http://www.bookschina.com/question/default0112.asp" target="_blank">关于特价书的常见问题</a></li>
</ul>

<ul>
<li><h2>购买问题</h2></li>
<li>·<a href="http://www.bookschina.com/vieworder/listorder.aspx" target="_blank">订单跟踪</a></li>
<li>·<a href="http://www.bookschina.com/question/default2.asp" target="_blank">付款方式</a></li>
<li>·<a href="http://www.bookschina.com/vieworder/deposit.aspx" target="_blank">账户余额</a>&nbsp;&nbsp;&nbsp;<a href="http://www.bookschina.com/vieworder/Refund.aspx" target="_blank">申请提现</a></li>
<li>·<a href="http://www.bookschina.com/question/default3.asp" target="_blank">配送方式及费用、范围</a></li>
<li>·<a href="http://www.bookschina.com/groupshop/default.asp" target="_blank">集团购买</a></li>
</ul>

<ul>
<li><h2>售后服务</h2></li>
<li>·<a href="http://www.bookschina.com/question/default4.asp" target="_blank">退换货流程</a></li>
<li>·<a href="http://www.bookschina.com/sms/smsSend.aspx" target="_blank">投诉与建议</a></li>
</ul>

<ul>
<li><h2>特色服务</h2></li>
<li>·<a href="http://www.bookschina.com/ViewOrder/default.aspx" target="_blank">会员等级与积分</a></li>
<li>·<a href="http://www.bookschina.com/vieworder/Card.aspx" target="_blank">中图书馨卡</a></li>
</ul>

<ul>
<li><h2>其他信息</h2></li>
<li>·<a href="http://www.bookschina.com/adservice/about.asp" target="_blank">本站简介</a></li>
<li>·<a href="http://www.bookschina.com/adservice/about2.asp" target="_blank">联系我们</a></li>
<li>·<a href="http://www.bookschina.com/adservice/bookshr.asp" target="_blank">招聘英才</a></li>
<li>·<a href="http://www.bookschina.com/union/default.asp" target="_blank">网站联盟</a></li>
<li>·<a href="http://www.bookschina.com/adservice/friend.aspx" target="_blank">友情链接</a></li>
</ul>
<div class="clear"></div>


<div class="bot-box"><div><a href="https://search.szfw.org/cert/l/CX20150319007127007283" target="_blank"><img src="./book_source/modules/imgs/deng/addAddress/chengxin.jpg"></a><a href="http://www.ectrustprc.org.cn/seal/splash/1000006.htm" target="_blank"><img src="./book_source/modules/imgs/deng/addAddress/ectrust.gif"></a></div><div><a href="http://www.miibeian.gov.cn/" target="_blank">经营许可证编号：京ICP备09013606号-3</a><a href="http://www.bookschina.com/include/type2.asp" target="_blank">京信市监发[2002]122号</a><span>海淀公安分局备案编号：1101083394</span><br><a href="http://www.bookschina.com/Images/yyzz.jpg" target="_blank">营业执照</a><a href="http://www.bookschina.com/Images/jyxkz.jpg" target="_blank">出版物经营许可证</a></div></div>
</div>
<!--底部文件结束-->
<div style="display:none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6993f0ad5f90f4e1a0e6b2d471ca113a' type='text/javascript'%3E%3C/script%3E"));
</script><script src="./book_source/modules/imgs/deng/addAddress/h.js.下载" type="text/javascript"></script><a href="http://tongji.baidu.com/hm-web/welcome/ico?s=6993f0ad5f90f4e1a0e6b2d471ca113a" target="_blank"><img border="0" src="./book_source/modules/imgs/deng/addAddress/21.gif" width="20" height="20"></a>
</div>
   <div class="cusSer">
        <div class="cusSerIn">
            <a class="slide_min" onclick="NTKF.im_openInPageChat(&#39;kf_9067_1501484109259&#39;)">在线客服</a>
        </div>
    </div>
    <script language="javascript" type="text/javascript">
        NTKF_PARAM = {
            siteid: "kf_9067",		             //企业ID，为固定值，必填
            settingid: "kf_9067_1501484109259",	 //接待组ID，为固定值，必填
            uid: "",		                 //用户ID，未登录可以为空，但不能给null，uid赋予的值在显示到小能客户端上
            uname: "",		     //用户名，未登录可以为空，但不能给null，uname赋予的值显示到小能客户端上
            isvip: "0",                           //是否为vip用户，0代表非会员，1代表会员，取值显示到小能客户端上
            userlevel: "1",		                 //网站自定义会员级别，0-N，可根据选择判断，取值显示到小能客户端上
            erpparam: "abc",                      //erpparam为erp功能的扩展字段，可选，购买erp功能后用于erp功能集成
            ntalkerparam: {
            category: "个人中心",    //分类名称，多分类可以用分号(;)分隔， 长路径父子间用冒号(:)分割
            brand: ""             //品牌名称，多品牌可以用分号(;)分隔
            }
        }
    </script>
    <script type="text/javascript" src="./book_source/modules/imgs/deng/addAddress/ntkfstat.js.下载" charset="utf-8"></script>
<div style="display:none">
    <script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?6993f0ad5f90f4e1a0e6b2d471ca113a";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    </script>
</div>
    </form>



</body>
</body>
</html>